package com.ctjsoft.fileupload.mapper;

import com.ctjsoft.fileupload.entity.TBucketServer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TBucketserverMapper {

    List<TBucketServer> getBucketList();

    int addBucket(TBucketServer tBucketServer);

    int updateBucket(TBucketServer tBucketServer);

    int deleteBucket(String id);

    TBucketServer getBucketById(String id);

    @Select("select * from t_bucket_server where server_name=#{serverName}")
    TBucketServer getBucketByName(String serverName);
}
